import request from '@/utils/request'

// 查询网关型号列表
export function listGatewayModel(query) {
  return request({
    url: '/business/gatewayModel/list',
    method: 'get',
    params: query
  })
}

export function listGatewayModelChoose() {
  return request({
    url: '/business/gatewayModel/list/choose',
    method: 'get'
  })
}

// 查询网关型号详细
export function getGatewayModel(gatewayModelId) {
  return request({
    url: '/business/gatewayModel/' + gatewayModelId,
    method: 'get'
  })
}

// 新增网关型号
export function addGatewayModel(data) {
  return request({
    url: '/business/gatewayModel',
    method: 'post',
    data: data
  })
}

// 修改网关型号
export function updateGatewayModel(data) {
  return request({
    url: '/business/gatewayModel',
    method: 'put',
    data: data
  })
}

// 删除网关型号
export function delGatewayModel(gatewayModelId) {
  return request({
    url: '/business/gatewayModel/' + gatewayModelId,
    method: 'delete'
  })
}

// 设备型号下拉选择
export function listElectricityModelSelect() {
    return request({
        url: '/business/gatewayModel/list/select',
        method: 'get'
    })
}

